<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Factories</title>
</head>
<body>

<!-- Target Container -->
<div id="react-container"></div>

<!-- React Library & React DOM-->
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/react-dom-factories@1.0.2/index.js"></script>

<script>

    var items = [
      "1 lb salmon",
      "1 cup Pine Nuts",
      "2 cups Butter Lettuce",
      "1 Yellow Squash",
      "1/2 cup Olive Oil",
      "3 cloves of Garlic"
    ]

    var list = ReactDOMFactories.ul(
        { className: "ingredients" },
        items.map((ingredient, key) =>
            ReactDOMFactories.li({key}, ingredient)
        )
    )

    ReactDOM.render(
        list,
        document.getElementById('react-container')
    )

</script>

</body>
</html>
